package com.jzr.bedside.db1.mapper;

import org.apache.ibatis.annotations.Update;
import org.springframework.context.annotation.Primary;

@Primary
public interface MyDeviceMapper extends TDeviceMapper {
    @Update("update t_device set register_bed=null where register_bed=#{bedId}")
    Integer cancelRegisterBed(Integer bedId);

    @Update("update t_device set device_ip=null where device_ip=#{deviceIp}")
    Integer cancelDeviceIp(String deviceIp);

    @Update("update t_bed set bed_card_id=null where bed_card_id=#{bedCardId}")
    Integer cancelBindBed(Integer bedCardId);
}
